﻿#region Using directives
using System;
using System.ComponentModel;
using System.Web.Script.Services;
using System.Web.Services;
using ProcolDemo.IdeasReference;

#endregion

namespace ProcolDemo.Proxies
{
    /// <summary>
    /// Summary description for IdeasProxy
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ToolboxItem(false)]
    [ScriptService]
    public class IdeasProxy : WebService
    {
        private readonly IdeasService ideas = new IdeasService();

        [WebMethod]
        public String[] GetIdeasNames(String prefixText, int count)
        {
            return ideas.GetListOfIdeasNames(prefixText, count);
        }
    }
}